<script>
	$(document).ready(function(){
		 $('.tab_trigger_li').on("click",function(){
			$('.tab_trigger_li').removeClass("active");
			$(this).addClass("active");
			$('.tab_content_li').removeClass("show");
			var target = $(this).attr('data-target') ;
			$('.'+target).addClass("show") ;
		 })
	});
</script>
<div id="newShareDia" class="share-panel" style="width: auto; min-height: 0px; max-height: none; height: 408px;">
    <div class="hd clearfix pwd-on">
        <span class="msg">
            报表发布链接已经生成
        </span>
		 <span class="password">
            （发布用户：
            <span class="code">
                admin
            </span>
            ）
        </span>
    </div>
    <div class="bd">
        <ul class="tab_trigger_ul">
            <li class="tab_trigger_li link_url_trigger active" data-target="link_url">
                <a href="#" onclick="return false;">
                    发布链接
                </a>
                <span class="on">
                </span>
            </li>
            <li class="tab_trigger_li" data-target="share_to_sns">
                <a href="#" onclick="return false;" >
                    发布到移动端
                </a>
                <span class="on">
                </span>
            </li>
            <li class="tab_trigger_li send_mail_trigger" data-target="tab-send-msg">
                <a href="#" onclick="return false;">
                    发送二维码到邮箱
                </a>
                <span class="on">
                </span>
            </li>
        </ul>
        <ul class="tab_content_ul">
            <li class="tab_content_li link_url show">
                <p class="tips_of_content">
                    成功生成发布链接，复制以下链接发送给其他用户！
                </p>
                <input class="url-input" type="text" value="${url!''}"
                readonly="">
            </li>
            <li class="tab_content_li share_to_sns">
                <p class="tips_of_content">
                    将发布链接生成移动端二维码扫描：
                </p>
                <div class="weibo-share btns clearfix" style="text-align:center;">
                    <img src="/${orgi}/user/qrcode/${reportid!''}.html" width="150"/>
                </div>
                <div class="other-share">
                    <span>
                        二维码地址：<a href="/${orgi}/user/qrcode/${reportid!''}.html" target="_blank">点击打开</a>
                    </span>
                    
                </div>
            </li>
            <li class="tab_content_li tab-send-msg" id="mail">
				<form action="/${orgi}/user/sendmail/${reportid!''}.html" data-toggle="ajax-form" data-close="false" data-target="#mail">
                <p class="tips_of_content">
                    将已生成的分享链接发送到：
                </p>
                <div style="padding-top:10px;">
                    <textarea autocomplete="off" name="mail" maxlength="45" style="width:470px;height:45px;" placeholder="请输入邮箱地址，用逗号、分号或空格分隔"></textarea>
                </div>
                <div class="mail-content">
					
                    <div class="add_content">
						
						<div class="add-btn-box">
                           邮件标题： <input class="url-input" name="title" type="text" value="<#if report??>通过邮件发布_${report.name!''}_访问地址<#else>通过邮件发布访问地址</#if>" style="width:386px;">
                        </div>

                        <div class="add-btn-box" style="margin-top:10px;">
                            <a class="add-btn" href="#" hidefocus="true" onclick="return false;">
                                 简短附言内容：
                            </a>
                            （请保持内容简短）
                        </div>
                        <div class="add-input-box clearfix" style="display: block;">
                            <textarea placeholder="请输入附言" name="text"></textarea>
                        </div>
                    </div>
                </div>
				<input type="submit" style="display:none;" id="fbtn">
                <a class="ok-btn send-btn" href="#" onclick="$('#fbtn').click();return false">
                    发送
                </a>
				</form>
            </li>
        </ul>
    </div>
    <div class="ft clearfix">
        
        <div class="ft-btns">
            <span class="y-btn y-btn-gray ok-btn" onclick="closeR3ArtDialog()">
                <span class="text">
                    关闭
                </span>
            </span>
        </div>
    </div>
</div>